package router

import (
	"chat-hub/handel"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {

	r := gin.Default()
	r.POST("/login", handel.Login)
	r.GET("/list", handel.List)
	r.GET("/find", handel.Find)
	r.POST("/add", handel.Add)
	r.GET("/del", handel.Del)
	return r
}
